package com.baibei.ebec.sdk;

/**
 * 接口常量
 * Created by ChenRui on 2017/4/27 0027 13:35.
 */
public final class ApiConstant {

    // 基础路径
//    static final String API_BASE_URL = "http://192.168.100.169:808/ebec/index.php/";
//    static final String API_BASE_URL = "http://192.168.100.96:9092";
//    static final String API_BASE_URL = "http://cbecfat.100bei.com";
//    static final String API_BASE_URL = "http://cbecgw.100bei.com";
    public static final String API_BASE_URL = BuildConfig.API_BASE_URL;

    /**
     * 会员
     */
    public static final String MEMBER_CHANNEL = BuildConfig.MEMBER_CHANNEL;

    //region 请求头

    // 头部的KEY名称
    public static final String APP_U_KEY_NAME = "App-Key";

    // 头部的Secret名称
    public static final String APP_U_SECRET_NAME = "App-Secret";
    public static final String API_TOKEN_SIGN_OUT = "cbclient/user/oauth/logout";

    // APP KEY 由于经常用到所有保存到变量里面去
    public static String APP_U_KEY_VALUE = BuildConfig.APPKEY;

    // 请求、响应头ACCESS TOKEN KEY
    public static final String ACCESS_TOKEN_KEY = "Access-Token";

    // 请求、响应头REFRESH TOKEN KEY
    public static final String REFRESH_TOKEN_KEY = "Refresh-Token";

    /**
     * 分页
     */
    public static final int PAGE_SIZE = 20;

    //endregion

    //region 行情接口

    /**
     * 商品列表
     */
    static final String API_PRODUCT_LIST = "products";

    /**
     * 查询商品排行榜
     */
    public static final String API_RANKING_LIST = "cbclient/api/longhui/product/ranking/query";

    public static final String API_RANKING_LIST_LONDON = "cbclient/api/index";

    /**
     * 新的获取首页数据 2.2后
     */
    public static final String API_HOME_INDEX_DATA_NEW = "cbclient/api/index/products";
//
//    /**
//     * 分时图数据
//     */
//    static final String API_QUOTATION_MINUTE = "products/{productCode}/time-sharing";

    /**
     * K线数据
     */
    static final String API_QUOTATION_KLINE = "cbclient/api/quote/kline/query";

    /**
     * K线数据(一周数据)
     */
    static final String API_QUOTATION_KLINE_FORWEEK = "cbclient/api/quote/kline/forWeek";

    /**
     * 分时买卖档位明细数据
     */
    static final String API_QUOTATION_MINUTE_DETAIL = "matched-delegations";

    /**
     * 实时行情
     */
    static final String API_QUOTATION_INFO = "cbclient/api/quote/latest/query";
    /**
     * 查询产品的价格信息
     */
    static final String API_PRODUCT_PRICE_INFO = "cbclient/api/quote/open/query";
    /**
     * 实时行情
     */
    static final String API_QUOTATION_TAP = "hanging-delegations";

    /**
     * 查询市场是否开市
     */
    static final String API_TRADE_STATUS = "cbclient/api/open/flag";

    //endregion

    //region 账户接口

    /**
     * 银行列表
     */
    static final String API_ACCOUNT_BLANKS = "cbclient/api/oauth/fund/listBank";

    /**
     * 获取用户信息
     */
    static final String API_USERINFO = "cbclient/api/oauth/userInfo/query";
    /**
     * 用户实名认证信息
     */
    static final String API_USER_AUTH_INFO = "cbclient/api/oauth/fund/realName/query";

    /**
     * 实名认证
     */
    static final String API_REALNAME_IDENTIFY = "cbclient/api/oauth/fund/realName/identify";

    /**
     * 开资金帐户
     */
    static final String API_ACCOUNT_CREATE = "users/{userId}/account";


    /**
     * 账户余额
     */
    public static final String API_ACCOUNT_BALANCE = "cbclient/api/oauth/fund/query";

    /**
     * 账户可用余额
     */
    public static final String API_ACCOUNT_VALID_BALANCE = "cbclient/api/oauth/fund/queryBalance";


    /**
     * 充值/资金转入
     */
    static final String API_ACCOUNT_BALANCE_RECHARGE = "cbclient/api/oauth/fund/infund";

    /**
     * 查询建议充值金额
     */
    static final String API_SUGGEST_INFUNDS = "cbclient/api/suggest/infunds";

    /**
     * 查询支付渠道
     */
    static final String API_PAY_CHANNEL = "cbclient/api/oauth/fund/pay/channel/query";

    /**
     * 提现/资金转出
     */
    static final String API_ACCOUNT_BALANCE_WITHDRAW = "cbclient/api/oauth/fund/outfund";


    /**
     * 委托买入卖出
     */
    static final String API_TRADE_BUY = "cbclient/api/oauth/order/current/create";
    static final String API_TRADE_SELL = "cbclient/api/oauth/order/settlement/create";
    /**
     * 重新委托
     */
    static final String API_TRADE_RECREATE_DELEGATIONS = "users/{userId}/delegations/{delegationNum}";


    /**
     * 委托撤单
     */
    static final String API_TRADE_CANCEL = "cbclient/api/oauth/order/close";

    /**
     * 未成交的委托列表
     */
    static final String API_TRADE_HOLDING = "users/{userId}/hanging-delegations";

    /**
     * 委托记录
     */
    static final String API_BILL_DELEGATE = "users/{userId}/history-delegations";

    /**
     * 订货记录
     */
    static final String API_BILL_TRADE = "cbclient/api/oauth/order/queryClosedOrder";
    /**
     * 拼单列表页
     */
    public static final String API_TRADE_MERGE_ORDER = "cbclient/api/crawdOrdering/listProduct";
    /**
     * 新增拼单
     */
    public static final String API_TRADE_MERGE_ORDER_CREATE = "cbclient/api/oauth/crawdOrdering/create";

    /**
     * 委托交易手续费率
     */
    static final String API_TRADE_FEE = "users/{userId}/delegations/fee-ratio";

    /**
     * 风险率
     */
    static final String API_LOAN_RISK_RATE = "users/{userId}/risk";

    /**
     * 信用状态
     */
    static final String API_LOAN_CREDIT_STATUS = "users/{userId}/loan-info";


    /**
     * 交收记录
     */
    static final String API_SETTLEMENT_DELEGATE = "users/{userId}/delivery-orders";

    /**
     * 资金记录
     */
    static final String API_BILL_FUNDS = "users/{userId}/account/balance/logs";


    /**
     * 查询我的持仓单
     */
    static final String API_TRADE_POSITION_DETAIL = "users/{userId}/matched-delegations/total";
    /**
     * 采购记录
     */
    static final String API_PURCHASE_DELEGATE = "settlements";
    /**
     * 查询商品开休市时间
     */
    static final String API_TRADE_OPEN_TIME = "products/{productCode}/open-close-time";
    //endregion

    //region 仓储

    /**
     * 查询商品列表（龙汇）
     */
    static final String API_SHIPMENT_LIST = "cbclient/api/longhui/product/query";

    /**
     * 采购品牌列表
     */
    static final String API_PRODUCT_BRANDS = "users/{userId}/purchasable-brands";

    /**
     * 交收品牌列表
     */
    static final String API_SETTLEMENT_PRODUCT_BRANDS = "users/{userId}/deliverable-brands";

    /**
     * 申请交收
     */
    static final String API_TRADE_APPLY_SETTLEMENT = "cbclient/api/oauth/order/delivery";

    /**
     * 申请采购
     */
    static final String API_TRADE_APPLY_PURCHASE = "users/{userId}/purchase-orders";

    //endregion

    //region 用户接口

    /**
     * 注册
     */
    static final String API_USER_REGISTER = "cbclient/user/personal/register";
    /**
     * 企业注册
     */
    static final String API_ENTERPRISE_REGISTER = "cbclient/user/enterprise/register";

    /**
     * 登录
     */
    static final String API_TOKEN_SIGN_IN = "cbclient/user/login/mobile";

    /**
     * 刷新TOKEN
     */
    static final String API_TOKEN_REFRESH = "cbclient/user/refresh-token";

    /**
     * 获取收货地址
     */
    public static final String API_USER_ADDRESS = "cbclient/api/oauth/address/query";

    /**
     * 获取收货地址
     */
    public static final String API_USER_ADDRESS_UPDATE = "cbclient/api/oauth/address/edit";

    /**
     * 删掉收货地址
     */
    public static final String API_USER_ADDRESS_DELETE = "cbclient/api/oauth/address/delete";

    /**
     * 设置默认收货地址
     */
    public static final String API_USER_ADDRESS_DEFAULT = "cbclient/api/oauth/address/default";

    /**
     * 用户信息
     */
    static final String API_USER_INFO = "users/{userId}/info";

    /**
     * APP KEY
     */
    static final String API_APP_KEY = "cbclient/app-keys";


    /**
     * 重置密码
     */
    static final String API_USER_RESET_PASSWORD = "cbclient/user/resetPassword";

    /**
     * 重置资金密码
     */
    static final String API_ACCOUNT_RESET_PASSWORD = "cbclient/api/oauth/fund/password/reset";

    /**
     * 设置资金密码
     */
    static final String API_ACCOUNT_CREATE_PASSWORD = "cbclient/api/oauth/fund/password/create";

    //endregion

    //region 消息推送

    /**
     * 公告列表
     */
    static final String API_NOTIFICATIONS = "organizations/{orgId}/announcements";

    /**
     * 首页公告内容
     */
    static final String API_NOTIFICATION_HOME = "organizations/{orgId}/current-announcements";


    /**
     * 发送短信验证码
     */
    public static final String API_PUSH_SMS = "cbclient/api/verifyCode/getVerifyCodeByCenter";

    /**
     * 校验手机验证码
     */
    public static final String API_PUSH_CHECK_SMS = "cbclient/api/verifyCode/validationCode";

    //endregion

    /**
     * 查询所有订单
     */
    public static final String API_QUERY_ORDER = "cbclient/api/oauth/order/query";

    /**
     * 统计订货差价等
     */
    public static final String API_QUERY_ORDER_SUM = "cbclient/api/oauth/order/sumClosedOrder";


    /**
     * 查询收支记录
     */
    public static final String API_QUERY_MONEY_LOG_LIST = "cbclient/api/oauth/money/queryMoneyLogList";

    /**
     * 补款取货记录
     */
    public static final String API_DELIVERY_QUERY = "cbclient/api/oauth/delivery/query";

    /**
     * 获取所有体验券列表
     */
    public static final String API_COUPON_QUERY = "cbclient/api/oauth/coupon/query";

    /**
     * 获取可用体验券数据
     */
    public static final String API_COUPON_USE_QUERY = "cbclient/api/oauth/coupon/use/query";

    /**
     * 获取可用体验券数据
     */
    public static final String API_QUERY_BANNER = "cbclient/api/banner/advertisements";

    /**
     * 客服
     */
    public static final String API_QUERY_QQ = "cbclient/api/oauth/qq/query";

    /**
     * 客服url
     */
    public static final String API_QUERY_QQ_URL = "cbclient/api/oauth/qq/url/query";

    /**
     * 客服
     */
    public static final String API_SUGGEST_NUMBERS = "cbclient/api/suggest/numbers";

    /**
     * 客服
     */
    public static final String API_FUND_VERIFYPWD = "cbclient/api/oauth/fund/verifyPwd";

    /**
     * 出入金时间提示信息
     */
    public static final String API_GET_FUND_TIME_INFO = "cbclient/api/oauth/fund/getFundTimeInfo";

    /**
     *首页弹窗信息
     */
    public static final String API_DIALOG_INFO = "QueryTC/ticket";

    /**
     * 修改止盈线
     */
    public static final String API_RESET_TOP_LIMIT = "cbclient/api/oauth/order/toplimit/update";

    /**
     * 修改止损线
     */
    public static final String API_RESET_BOTTOM_LIMIT = "cbclient/api/oauth/order/bottomlimit/update";

    /**
     * 检查更新
     */
    public static final String API_CHECK_UPDATE = "validate/version";

    /**
     * 查询帖子内容
     */
    public static final String API_QUERY_BBSCONTENT = "ddq/api/v1/article/findArticleDetail";
    /**
     * 查询订购比例
     */
    public static final String API_QUERY_ORDER_PERCENT = "ordertype/rate";

    /**
     * 获取首页跑马灯内容
     */
    public static final String API_GET_MARQUEE = "cbclient/api/banner/SSGB";

    /**
     * 获取首页跑马灯内容（NEW）
     */

    public static final String API_GET_MARQUEE_NEW = "get/pmd/message";

    /**
     * 消息中心是否有新消息
     */
    public static final String API_IF_NEW_MSG = "get/message/state";

    /**
     * 获取消息中心系统消息
     */
    public static final String API_GET_SYS_MSG = "get/personal/message";

    /**
     * 获取消息中心系统公告
     */
    public static final String API_GET_SYS_NOTICE = " get/gonggao/message";

    /**
     * 获取消息中心跟投消息
     */
    public static final String API_GET_FOLLOW_MSG = "get/teachers/message";

    /**
     * 设置价格浮动
     */
    public static final String API_SET_PRICE_FLOAT = "user/set/product/price";

    /**
     * 获取提醒内容
     */
    public static final String API_GET_HELP = "get/help/message";

    /**
     * 获取每日盈利榜排行信息
     */
    public static final String API_GET_WELFARE_RANK_INFO_DAY = "talent/ranking/day";

    /**
     * 获取每周盈利榜排行信息
     */
    public static final String API_GET_WELFARE_RANK_INFO_WEEK = "talent/ranking/week";

    /**
     * 获取每月盈利榜排行信息
     */
    public static final String API_GET_WELFARE_RANK_INFO_MONTH = "talent/ranking/month";

    /**
     * 他人盈利接口
     */
    public static final String API_FOLLOW_USER_DETAIL = "ddq/api/v1/query/personal/ranking";

    /**
     * 是否显示首页“新”字
     */
    public static final String API_IF_SHOW_XIN = "get/newAction/state";

    /**
     * 获取充值帮助信息
     */
    public static final String API_GET_RECHARGE_HELP = "get/recharge/info/message";

    /**
     * 获取盈利榜帮助信息
     */
    public static final String API_GET_WELFARE_HELP = "get/ranking/tips/message";

    /**
     * 获取客服微信号
     */
    public static final String API_GET_CUSTOMER_WX_CODE = "get/wx/code";
}
